/** 
 * Taxi Class
 * @author yevgenis
 *
 */
public class Taxi {
	private String _taxiId;
	private int _taxiNum;
	private static int counter=0;
	
	private String _driverName;
	private int _numPass;
	private boolean _available;
	
	
	
	public Taxi (String id,String driverName)
	{
		_taxiId = id;
		_driverName = driverName;
		_numPass = 4;
		_available = true;
		
		_taxiNum=++counter;
	}
	
	public Taxi (String id,String driverName,int numPass)
	{
		_taxiId = id;
		_driverName = driverName;
		_numPass = numPass;
		_available = true;
		_taxiNum=++counter;	
	}
	
	public String toString()
	{
		return "Taxi Info \n Driver Name:" + _driverName + "\n Taxi Id:" + 
				_taxiId + " Number: "+this._taxiNum +"\n"+(this._available?"Avaible":"Not Avaiable");
	}
	
	public Taxi (Taxi tx)
	{
		_taxiId = tx._taxiId;
		_driverName = tx._driverName;
		_numPass = tx._numPass;
		_available = tx._available;
		_taxiNum=++counter;	
	}
	
	
	public String getId ()
	{
		return _taxiId;
	}
	
	public String getName()
	{
		
		return _driverName;
	}
	
	public int getNum()
	{
		return _taxiNum;
	}
	
	public int getNumPass()
	{
		
		return _numPass;
	}
	
	public boolean getIsAvailable()
	{
		return _available;
	}
	
	public void taxiBusy()
	{
		this._available = false;
	}
	
	
	public int getTaxiNum()
	{
		
		return this._taxiNum;
	}
}
